﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace aeClient.Data
{
    public enum PROJECT_STATUS
    {
        INPROCESS,
        DONE,
        ERROR
    };

    public class Project
    {
        public String Name { get; set; }
        public PROJECT_STATUS Status { get; set; }
        public int Progress { get; set; }

        public List<Project> SubProjects { get; set; }

        public String StatusColor
        {
            get
            {
                switch (Status)
                {
                    case PROJECT_STATUS.INPROCESS:
                        return "green";
                    case PROJECT_STATUS.DONE:
                        return "black";
                    case PROJECT_STATUS.ERROR:
                        return "red";
                    default:
                        return "";
                }
            }
        }

        public Project(Project other)
        {
            Name = other.Name;
            Status = other.Status;
            Progress = other.Progress;
        }

        public Project()
        {
            Name = "";
            Status = 0;
            Progress = 0;
        }
    }

    public class DataInterface
    {

    }
}
